package com.ele.client.activity.training;

import com.google.gwt.core.shared.GWT;
import com.google.gwt.dom.client.AnchorElement;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.HeadingElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class TrainingViewImpl extends Composite implements TrainingView {

	interface DefaultUiBinder extends UiBinder<Widget, TrainingViewImpl> {}
	private static DefaultUiBinder uiBinder = GWT.create(DefaultUiBinder.class);

	private Presenter presenter;

	@UiField
	HeadingElement wordLabel;
	@UiField
	DivElement wordsContainer;
	@UiField
	AnchorElement button;

	public TrainingViewImpl() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter = presenter;
	}
}
